<?php
if(!defined("DNREAD")) exit();
global $conf,$ye,$mo,$da;
if (defined('SETTING')) {
    return $bs = '';
}
require_once(DNBASE.'base/danneo.calendar.php');
$calinq = "SELECT downid,public FROM ".$basepref."_down WHERE act='yes' AND (stpublic=0 OR stpublic<'".NEWTIME."') AND (unpublic=0 OR unpublic>'".NEWTIME."')";
$blockcal = new SiteCalendar();
$blockcal->CreateCalendar();
$blockcal->OutputCalendar('down',$calinq);
return $blockcal->out;
?>